﻿using Common.Library.Db;
using CreateData.Entitys;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CreateData
{
    public class DbHelp
    {
        public static void InsertLocation(List<LocationEntity> list)
        {
            IAppDBContext appDbContext = AppDBContextFactory.GetAppDBContext();
            string conn = ConfigurationManager.ConnectionStrings["Conn"].ToString();
            string tableName = "LocationAll";
            appDbContext.BulkInsert(conn, tableName, list);
        }
    }
}
